<?php View::render('admin/layouts/meta'); ?>
<body>
<div class="page-container">
	<div class="cl pd-5 bg-1 bk-gray mt-20"> 
        <span class="r">共有数据：<strong><?php echo $total;?></strong> 条</span> 
    </div>
	<div class="mt-20">
	<table class="table table-border table-bordered table-hover table-bg table-sort">
		<thead>
			<tr class="text-c">
				<th width="50">ID</th>
                <th width="100">类型</th>
                <th width="100">积分值</th>
                <th width="100">说明信息</th>
				<th width="90">添加时间</th>
			</tr>
		</thead>
		<tbody>
            <?php if($list) {
                foreach ($list as $info){?>
			<tr class="text-c">
				<td><?php echo $info['id'];?></td>
                <td><?php echo $info['type']==1?'增加':'减少';?></td>
                <td><?php echo $info['point'];?></td>
                <td class="text-l"><?php echo $info['title'];?></td>
                <td><?php echo date('Y-m-d H:i', $info['add_time']);?></td>
			</tr>
            <?php }}?>
		</tbody>
	</table>
        <div>
            <?php echo $pageHtml;?>
        </div>
	</div>
</div>
</body>
<?php View::render('admin/layouts/footer'); ?>
<script type="text/javascript">
$(function(){
    window.formAlert = function(title, url, w, h) { 
        layer.open({
            type: 2,
            title: title,
            area: [w, h],
            content: url,
            end: function(){
               window.location.href=location.href;
            }
          });
    }
    
});
</script>
</html>